<div class="container_12">
    <div class="grid_10">
        <div class="copyright">
            <?php echo Yii::t('app', 'footer_info') ?>
        </div>
    </div>
    
    <div class="grid_2">
        <div class="iconWrapper">
            <?php
            Yii::import('application.modules.dadmin.models.DComContact');
            $contactObj = new DComContact();
            $contactObj->getData();
            $aInfo = $contactObj->info['0'];

            $aExpects = array(
                'yahoo',
                'facebook',
                'skype',
            );

            foreach ($aExpects as $key) {
                if (isset($aInfo[$key]) && (! empty($aInfo[$key]))) {
                    switch ($key) {
                        case 'skype': {
                            $link = 'skype:' . $aInfo[$key] . '?chat';
                        }; break;
                        case 'yahoo': {
                            $link = 'ymsgr:sendIM?' . $aInfo[$key];
                        }; break;
                        default: {
                            $link = $aInfo[$key];
                        }; break;
                    }

                    echo CHtml::link('', $link, array(
                        'class' => 'icon icon' . ucfirst($key),
                        'title' => ucfirst($key),
                    ));
                }
            }
        ?>
        </div>
    </div>
</div>
